package cn.hotel.mapper;

import cn.hotel.entity.Cleaner;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CleanerMapper {
    public List<Cleaner> getAllCleaner();

    public int delById(Integer cleanerId);

    public int addCleaner(Cleaner cleaner);

    public int updateCleaner(Cleaner cleaner);

    public Cleaner getById(@Param("cleanerId") Integer cleanerId);

    public int getCount();

    public int updateNum(Integer cleanerId, String status);
}
